<template>
  <!--<div>-->
    <div class="mui-bar mui-bar-tab">
      <router-link class="mui-tab-item--lib " to="/messageview">
        <span class="mui-icon mui-icon-chatbubble">
          <span class="mui-badge" v-if='getTotalUnreadNumlg100'>{{getTotalUnreadNumlg100}}</span>
        </span>
        <span class="mui-tab-label">消息</span>
      </router-link>
      <router-link class="mui-tab-item--lib" to="/connectview">
        <span class="mui-icon mui-icon-contact">
          <span class="mui-badge" v-if='computeCurrentOPFriendsP && computeCurrentOPFriendsP.readNum'>{{computeCurrentOPFriendsP.readNum}}</span>
        </span>
        <span class="mui-tab-label">通讯录</span>
      </router-link>
      <router-link class="mui-tab-item--lib" to="/findview">
        <span class="mui-icon mui-icon-extra mui-icon-extra-find"></span>
        <span class="mui-tab-label">发现</span>
      </router-link>
      <router-link class="mui-tab-item--lib" to="/mineview">
        <span class="mui-icon mui-icon-person"></span>
        <span class="mui-tab-label">我的</span>
      </router-link>
  </div>
</template>

<script>
  import {mapGetters} from 'vuex'
  export default {
    computed: {
      ...mapGetters(['getTotalUnreadNumlg100', 'computeCurrentOPFriendsP'])
    },
    data() {
      return {
        // selected: '消息'
      }
    },
    watch: {
      // selected(newVal) {
      //   console.log(newVal)
      // }
    }
  }
</script>

<style lang='scss' scoped>
  *{
    touch-action: pan-y;
  }
  .mint-header{
    z-index: 3;
    overflow: hidden;
  }
  .mui-bar{
    z-index: 1;
  }
  .app-container {
    padding-top: 40px;
    padding-bottom: 50px;
    overflow-x: hidden;
  }
  /*该类名，解决点击无法切换的问题*/
  .mui-bar-tab .mui-tab-item--lib.active{
    color:green;
  }
  .mui-bar-tab .mui-tab-item--lib {
    display: table-cell;
    overflow: hidden;
    width: 1%;
    height: 50px;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #929292;
  }
  .mui-bar-tab .mui-tab-item--lib  .mui-icon {
    top: 3px;
    width: 24px;
    height: 24px;
    padding-top: 0;
    padding-bottom: 0;
  }
  .mui-bar-tab .mui-tab-item--lib  .mui-icon {
    top: 3px;
    width: 24px;
    height: 24px;
    padding-top: 0;
    padding-bottom: 0;
  }
  .mui-bar-tab .mui-tab-item--lib  .mui-icon ~ .mui-tab-label {
    font-size: 11px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mui-bar-tab .mui-tab-item--lib  {
    text-align: center;
    white-space: nowrap;
    color: #929292;
  }
  /*底部导航栏基本的样式*/
  /*.mint-tab-item-label{*/
    /*font-size: 14px;*/
    /*a{*/
      /*color: #8f8f94;*/
      /*p{*/
        /*margin-bottom: 6px;*/
      /*}*/
    /*}*/
  /*}*/
  /*底部导航栏被选中的样式*/
  /*.mint-tabbar > .mint-tab-item.is-selected  .mint-tab-item-label a p{*/
    /*color: green;*/
  /*}*/
</style>
